package com.job51.hro.exlog.config;

import com.job51.hro.exlog.aspect.RequestPreAdviser;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author pengfei.ma
 * @create 2023/4/23
 * @since 1.0.0
 */
@Configuration
public class ExLogWebConfig implements WebMvcConfigurer {
    @Resource
    RequestPreAdviser requestPreAdviser;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(requestPreAdviser).order(-50);
    }
}
